<?php
/**
 * 查询正在申请中的职位
 */
apf_require_controller("Abstract");
apf_require_class("Bll_Flow_Recruit");
class Ajax_GetApplyJobController extends AbstractController {

    public function handle_request() {
        $params = $this->request->get_parameters();
        if(empty($params['job_id'])){
            $this->json_encode(0,Const_Tip::ERROR_PARAM);
        }
        $recruit_bll = new Bll_Flow_Recruit();
        $res = $recruit_bll->get_recruit_by_jobid($params['job_id']);
        $this->json_encode(1,$res);
    }
}